home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5240 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: Norway.EU.net!usenet
  2. From: patrick.hanevold@login.eunet.no (Patrick Hanevold)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Ceck out this bug. What the *** is SASC/6.56 doing?
  5. Date: 11 Mar 1996 06:03:46 GMT
  6. Organization: EUnet Norway
  7. Message-ID: <874.6644T381T2315@login.eunet.no>
  8. References: <1120.6643T91T406@login.eunet.no> <4hvk1f$o0c@zeus.central.ntua.gr>
  9. NNTP-Posting-Host: pc6.asker-pm2-1.eunet.no
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12.  
  13. >>#define ScreenWidth     160
  14. >>#define ScreenHeight    128
  15. >>void main(void)
  16. >>{
  17. >>    int     x,y,n;
  18. >>    UBYTE   Buffer[ScreenWidth];
  19. >>    ULONG   Palette[256*3+2];           // This one causes the bug.
  20. >>    struct  Screen  *Scr=OpenScreenTags(NULL,
  21. >>        SA_Width,           320,
  22. >>        SA_Height,          256,
  23. >>        SA_Depth,           8,
  24. >>        TAG_END);
  25.  
  26. >Hmm, that Palette array holds 3080 bytes on the stack.
  27. >My guess is that you screw up your stack. Try making the stack bigger or
  28. >declare the array as global, out of the main function.
  29.  
  30. Tryed "Stack check" and all that. No difference.
  31. Anyway, the default stack is 4K isnt it?
  32. Cant think of anything using that additional 1K.
  33. Dont want it global. Allocate it myself now.
  34.  
  35. <sb>Patrick Hanevold - Virtual Reality developer
  36. <sb>patrick.hanevold@login.eunet.no
  37. <sb>Amiga and official Be developer
  38.  
  39.